package com.onesports.intelligent.k12.polarlight.domain.dto.sys;

import com.onesports.framework.kit.common.valid.Length;
import com.onesports.framework.kit.common.valid.NotEmpty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 产品目录DTO
 *
 * @author Wsy
 **/
@Data
public class PlatformDTO {

    @ApiModelProperty(value = "产品目录id（修改时传）")
    private String id;

    @ApiModelProperty(value = "归属平台(传code)",required = true)
    @NotEmpty(message = "平台不能为空")
    private String platformCode;

    @ApiModelProperty(value = "系统名称",required = true)
    @NotEmpty(message = "系统名称不能为空")
    @Length(max = 30,message = "系统名称字数最大支持30")
    private String name;

    @ApiModelProperty(value = "系统url",required = true)
    @NotEmpty(message = "系统url不能为空")
    @Length(max = 40,message = "系统url字数最大支持40")
    private String url;

    @ApiModelProperty(value = "系统图标",required = true)
    @NotEmpty(message = "系统图标不能为空")
    private String logo;

    @ApiModelProperty(value = "是否启用 false:关闭  true：启用",required = true)
    @NotEmpty(message = "状态不能为空")
    private Boolean isUse;

    @ApiModelProperty(value = "系统编码",required = true)
    @NotEmpty(message = "请输入系统编码")
    @Length(max = 20,message = "系统编码字数最大支持20个字")
    private String systemCode;
}
